package com.example.web.websystem.dao;

import com.example.web.websystem.dao.model.SysRoleDO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface SysRoleDao {
    int deleteByPrimaryKey(Long roleId);

    int insertSelective(SysRoleDO record);

    SysRoleDO selectByPrimaryKey(Long roleId);

    int updateByPrimaryKeySelective(SysRoleDO record);

    List<SysRoleDO> listByUserId(Long userId);

}